import axios from '@/utils/axios.js'

// 添加应用
export const fetchAddItem = data => {
    return axios({
        url: '/sys/app/addApp',
        method: 'post',
        data,
        mock: true
    })
}
// 编辑应用
export const fetchEditItem = data => {
    return axios({
        url: '/sys/app/editApp',
        method: 'post',
        data,
        mock: true
    })
}
// 列表
export const appManagerPageList = params => {
    return axios({
        url: '/sys/app/getAppList',
        method: 'get',
        params,
        mock: true
    })
}
//禁用启用
export const enableItem = params => {
    return axios({
        url: 'sys/app/disOrEnableApp',
        method: 'post',
        params,
        mock: true
    })
}
